package com.chang.bootplus.po;

import com.chang.bootplus.vo.LocationVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.List;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "订单修改", description = "")
public class OrderListPO {

    @ApiModelProperty("订单id")
    private Long id;

    @ApiModelProperty("其他信息")
    private String message;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("商家id")
    private Long busId;

    @ApiModelProperty("商品总价")
    private BigDecimal amount;

    @ApiModelProperty(value = "买家地址信息",required = true)
    private LocationVO userLocation;

    @ApiModelProperty(value = "卖家地址信息",required = true)
    private LocationVO busLocation;

    @ApiModelProperty("商品详情")
    private List<OrderDetailPO> detailsList;

}

